package com.example.helloworld;

public class If {
    public static void main(String[] args) {
//        int x = 20;
//
//        if (x > 19){
//            System.out.println("大于"+x);
//        }else {
//            System.out.println("小于"+x);
//        }
        int x = 30;

        if( x == 10 ){
            System.out.print("Value of X is 10");
        }else if( x == 20 ){
            System.out.print("Value of X is 20");
        }else if( x == 30 ){
            System.out.print("Value of X is 30");
        }else{
            System.out.print("这是 else 语句");
        }
    }
}
